file = open("python面向对象及高级/05_文件.py/TEXT.txt")

while True:
    text = file.readline()

    # 判断是否读取到内容
    if not text:
        break
    
    print(text)

file.close()